package com.ss.android.article.base.feature.message;

import android.view.View;
import android.widget.AbsListView;
import android.widget.AbsListView;

final class i implements AbsListView.OnScrollListener {
    private final f a;

    i(f arg1) {
        this.a = arg1;

    }

    public final void onScroll(AbsListView arg2, int arg3, int arg4, int arg5) {
        if(arg5 > 1 && arg5 == arg3 + arg4) {
            this.a.c();
        }
    }

    public final void onScrollStateChanged(AbsListView arg2, int arg3) {
        if(arg3 != 0) {
            if(this.a.b != null && this.a.b.getVisibility() == View.VISIBLE) {
                this.a.f.run();
            }

            if(this.a.c == null) {
                return;
            }

            if(this.a.c.getVisibility() != View.VISIBLE) {
                return;
            }

            this.a.g.run();
        }
    }
}

